package com.nis.bcreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 描述: 清除通知
 * 创建: zhangyh
 * 时间: 2018/9/13
 */

public class MyClearReceiver extends BroadcastReceiver {
    public static String ClearKey = "com.notification.clear";
    ServicesClearListener mListener;

    public MyClearReceiver(ServicesClearListener mListener) {
        this.mListener = mListener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if (mListener != null) {
            mListener.canClear();
        }
    }

    interface ServicesClearListener {
        void canClear();
    }
}
